import random;

n = 5000;
m = 1;
print(str(n) + " " + str(m));
for i in range(n):
	for j in range(m):
		t = random.randint(0, 1);
		if t == 2:
			print("L",end="");
		elif t == 3:
			print("R",end="");
		elif t == 0:
			print("D",end="");
		elif t == 1:
			print("U",end="");
		elif t == 4:
			print(".",end="");
	print();